package yja.gzw.app.activity

import android.view.View
import android.widget.TextView
import com.kongzue.dialogx.dialogs.CustomDialog
import com.kongzue.dialogx.interfaces.OnBindView
import yja.gzw.app.R
import yja.gzw.app.base.BaseActivity
import yja.gzw.app.databinding.ActivityGuanyuwomengBinding
import yja.gzw.app.viewmodel.Mainviewmodel

class GuanyuwomengActivity :BaseActivity<Mainviewmodel, ActivityGuanyuwomengBinding>(R.layout.activity_guanyuwomeng){
    override fun initView() {

        binding.zhanshi1.setOnClickListener {

            CustomDialog.show(object : OnBindView<CustomDialog>(R.layout.layout_custom_dialog) {
                override fun onBind(dialog: CustomDialog, v: View) {
                    val tongyi = v.findViewById<TextView>(R.id.tongyi)
                    val butongyi = v.findViewById<TextView>(R.id.butongyi)
                    val biaoti = v.findViewById<TextView>(R.id.biaoti)
                    biaoti.text = "隐私政策"


                    tongyi.visibility = View.GONE
                    butongyi.visibility = View.GONE
                }
            })
                .setMaskColor(resources.getColor(R.color.touming))
        }




        binding.zhanshi2.setOnClickListener {
            CustomDialog.show(object : OnBindView<CustomDialog>(R.layout.layout_custom_dialog) {
                override fun onBind(dialog: CustomDialog, v: View) {
                    val tongyi = v.findViewById<TextView>(R.id.tongyi)
                    val butongyi = v.findViewById<TextView>(R.id.butongyi)
                    tongyi.visibility = View.GONE
                    butongyi.visibility = View.GONE
                }
            })
                .setMaskColor(resources.getColor(R.color.touming))

        }

    }

    override fun dataObservese() {

    }
}